xen/x86: p2m: Don't initialize slot 0 of the P2M
authorJulien Grall <jgrall@amazon.com>
Mon, 3 Feb 2020 16:26:16 +0000 (16:26 +0000)
committerJulien Grall <julien@xen.org>
Mon, 17 Feb 2020 22:03:52 +0000 (22:03 +0000)
commitc9727280da893b57a4eb33de26fbc6669410eabb
tree593e1c7d6c25a05a228214d8f149d781c11534d7
parent8171e0796542e11c2d5067f86cc69201c2584501
xen/x86: p2m: Don't initialize slot 0 of the P2M

It is not entirely clear why the slot 0 of each p2m should be populated
with empty page-tables. The commit introducing it 759af8e3800 "[HVM]
Fix 64-bit HVM domain creation." does not contain meaningful
explanation except that it was necessary for shadow.

As we don't seem to have a good explanation why this is there, drop the
code completely.

This was tested by successfully booting a HVM with shadow enabled.

Signed-off-by: Julien Grall <jgrall@amazon.com>
Acked-by: George Dunlap <george.dunlap@citrix.com>
xen/arch/x86/mm/p2m.c